package de.gameduell.net.src.connection {
	import flash.events.IEventDispatcher;
	
	import de.gameduell.net.src.message.IMessage;	

	public interface IConnection extends IEventDispatcher{
		function sendMessage(message:IMessage):void;
		function connect(host:String,port:int):void;
		function close():void;
		function stopConnectTimer():void;
		function getType():String;
		function get used():Boolean;
		function reconnect(host:String, port:int):void;
	}
}
